package com.gton.lpl.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author GuoTong
 * @since 2021-10-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="GpItem对象", description="")
public class GpItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID	ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "所属菜单ID")
    private Long menuId;

    @ApiModelProperty(value = "最小菜单-内容项名称")
    private String itemName;

    @ApiModelProperty(value = "内容项介绍描述")
    private String itemDesc;

    @ApiModelProperty(value = "内容项示例代码")
    private String itemCode;

    @ApiModelProperty(value = "内容项示例图片地址：阿里云OSS")
    private String itemImag;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除（0-标识删除,1-标识可用）")
    private Integer isDel;

    @ApiModelProperty(value = "留言板-板块ID")
    private Long leavingMsgId;


}
